package com.cc.pms.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 存储用户之间的聊天记录
 * </p>
 *
 * @author corleone
 * @since 2025-04-19
 */
@Getter
@Setter
@ToString
public class UserChatVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息id
     */
    private Long id;

    /**
     * 发送者id
     */
    private Long senderId;

    private String senderName;

    private String senderAvatar;

    /**
     * 接收者id
     */
    private Long receiverId;

    private String receiverName;

    private String receiverAvatar;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 发送时间
     */
    private String sendTime;

    /**
     * 是否已读，0-未读，1-已读
     */
    private Integer isRead;
}
